package com.ruoyi.system.api;


import com.ruoyi.common.core.constant.Constants;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Signin;
import com.ruoyi.system.api.factory.RemoteSignupRuleFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteSignupRuleService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteSignupRuleFallbackFactory.class)
public interface RemoteSignupRuleService {

    @PostMapping("/signupRule")
    public AjaxResult add(@RequestBody Signin signin, @RequestHeader(SecurityConstants.FROM_SOURCE)String source);

    @GetMapping("/signupRule/getActivityInfo")
    public AjaxResult getCheckInfo(@RequestParam("id")String id,@RequestParam("type")Long type, @RequestHeader(SecurityConstants.FROM_SOURCE)String source);


    @GetMapping("/signup/getSignUp")
    public AjaxResult getSignUpByActivityId(@RequestParam("activityId")String activityId,@RequestHeader(SecurityConstants.FROM_SOURCE)String source);
}
